<!DOCTYPE html>
<html>
	<head>
		<!-- css的网页布局中常见的是，最上面head和body一样宽，中间banner包含浮动，底部footer和body一样宽 -->
		<meta charset="utf-8">
		<title>网页基本布局</title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}

			li {

				list-style: none;
				width: 230px;
				height: 300px;
				background-color: skyblue;
				float: left;
				margin-right: 20px;

			}

			.top {
				/* width: 1224px; */
				height: 78px;
				line-height: 78px;
				text-align: center;
				background-color: hotpink;
				margin: 0 auto;
			}

			.banner {
				width: 980px;
				height: 150px;
				text-align: center;
				line-height: 150px;
				background-color: green;
				margin: 0 auto;
				margin-top: 20px;
			}

			.box {
				width: 980px;
				height: 300px;
				margin: 0 auto;
				background-color: gray;
				margin-top: 20px;
			}

			.last {
				margin-right: 0px;
			}

			.footer {
				/* width: 1224px; */
				height: 160px;
				line-height: 78px;
				text-align: center;
				background-color: yellow;
				margin: 20px auto;
			}
		</style>
	</head>
	<body>
		<div class="top">top</div>
		<div class="banner">banner</div>
		<div class="box">
			<ul>
				<li>1</li>
				<li>2</li>
				<li>3</li>
				<li class="last">4</li>
			</ul>

		</div>
		<div class="footer">footer</div>

	</body>
</html>
